package cc.mrbird.febs.system.dao;

import cc.mrbird.febs.system.domain.TResident;
import cc.mrbird.febs.system.vo.TResidentVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author dtwei
 */
@Mapper
public interface TResidentMapper extends BaseMapper<TResident> {

    IPage<TResidentVO> findRSDetails(Page<TResident> page, @Param("rs") TResident rs, @Param("areaName") String areaName);

    int countCardId(@Param("cardId") String cardId);

    void insertList(@Param("rsList") List<TResidentVO> rsList);
}
